import { GET_USER_INFO } from '../constants'

const user = (state = {}, action) => {
  if (action.type === GET_USER_INFO) {
    return action.payload
  }
  return state
}
export default user
